<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.kensure.shike.constant.BusiConstant"%>
<%@page import="co.kensure.api.ApiUtil"%>
<!DOCTYPE html>
<html>
<jsp:include page="base/header.jsp" flush="true"> 
 <jsp:param value="系统登录" name="pageTitle"/>
</jsp:include>
<link rel="stylesheet" type="text/css" href="<%=BusiConstant.context%>/page1/houtai/login/css/index.css" />

<body>

<img class="bgone" src="<%=BusiConstant.context%>/page1/houtai/login/img/1.jpg" />
<img class="pic" src="<%=BusiConstant.context%>/page1/houtai/login/img/a.png" />

<div class="table">
	<div class="wel"><%=BusiConstant.name%>后台系统登录</div>
	<div class="wel1"><%=BusiConstant.namepy%> HUO TAI XI TONG DENG LU</div>
	<div class="user">
		<div id="yonghu" style=""><img src="<%=BusiConstant.context%>/page1/houtai/login/img/yhm.png" /></div>
		<input type="text" id="loginname" placeholder="用户名" />
	</div>			
	<div class="password">
		<div id="yonghu"><img src="<%=BusiConstant.context%>/page1/houtai/login/img/mm.png" /></div>
		<input type="password" id="pwd" placeholder="●●●●●●"/>
	</div>
	<input class="btn" type="button" name="登录" onclick="login()" value="登录" style="cursor:pointer;"/>
</div>

</body>

<script type="text/javascript">
	function login(){ 
	   var data = {loginname:$("#loginname").val(),password:$("#pwd").val()};
	   var url = getbaseurl("/em/login.do");
	   postdo(url, data, sucdo,null, null);
	}
	
	function sucdo(data){
		var row = data.resultData.row;
		var path = {path : '/'}
		$.cookie("tokenid",row);
		location.href = getbaseurl("/gl/bblist");
	}
     
</script>
</html>

